home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / mpu401 / cpu.asm < prev    next >
Assembly Source File  |  1978-02-06  |  680b  |  40 lines

  1. ; Copyright (C) 1986 by M. J. Shannon, Jr.
  2. ; Permission to distribute for non-commercial uses granted as long as this
  3. ; notice is retained.  Violators will be prosecuted.
  4.  
  5.     title    cpu assist for mpu
  6.     page    66,80
  7.  
  8. ;These routines make up for a
  9. ;deficiency in the Lattice C library.
  10. ;Alas, messing around with the MPU-401
  11. ;requires that interrupts be turned on
  12. ;and off occasionally.  Further, using
  13. ;the BIOS directly (via int86) also
  14. ;confuses the state of interrupts.
  15.  
  16. cpu_prog    segment public para 'PROG'
  17.  
  18.     public    cli
  19.     public    sti
  20.  
  21.     assume    cs:cpu_prog
  22.  
  23. cli    proc far
  24.  
  25.     cli
  26.     ret
  27.  
  28. cli    endp
  29.  
  30. sti    proc far
  31.  
  32.     sti
  33.     ret
  34.  
  35. sti    endp
  36.  
  37. cpu_prog    ends
  38.  
  39.     end
  40.